package com.dzh.dzhhub.service;

import com.dzh.dzhhub.common.Result;
import com.dzh.dzhhub.entity.User;

import javax.servlet.Servlet;
import javax.servlet.ServletResponse;

/**
 * @author DZHooo
 * @version 1.0
 * @date 2021/11/16 9:54
 * @description: TODO
 */

public interface LoginService {

    /**
     * 登录表单提交
     */
    Result authLogin(String username, String password, ServletResponse response);

    User getUser(String username, String password);

    /**
     * 查询当前登录用户的权限等信息
     */
    Result<?> getInfo();

    /**
     * 退出登录
     */
    Result<?> logout(String username);
}
